package com.wyp168.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wyp168.common.utils.PageUtils;
import com.wyp168.gulimall.product.entity.SpuInfoEntity;
import com.wyp168.gulimall.product.vo.SpuSaveVO;

import java.util.Map;

/**
 * spu信息
 *
 * @author wyp168
 * @email 2721255240@qq.com
 * @date 2022-10-22 12:09:09
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存spu产品相关信息
     * @param spuSaveVO
     */
    void saveSupInfo(SpuSaveVO spuSaveVO);

    /**
     * 测试MyBatis是否在插入记录后回填id值
     * @param supInfoEntity
     */
    void testSave(SpuInfoEntity supInfoEntity);

    /**
     * 条件查询带分页
     * @param params
     * @return
     */
    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 上架商品，并且将响应的spu数据同步到es中
     * @param spuId
     */
    void up(Long spuId);
}

